<?php

class Emms_Form_Default_PwdRecovery extends Zend_Form
{
    public function __construct() 
    {
        parent::__construct();
                
        $this->setName('PwdRecovery');
        
        $this->setAttrib('title', $this->translate("Forgot password?"));
        $this->setDescription($this->translate("Enter your registered email and click send"));
        
        $email = new Zend_Form_Element_Text('email');
        $email->setRequired(true)        
            ->addValidator('EmailAddress', true)
            ->addFilter('StringToLower')
            ->addFilter('StringTrim');
            //->removeDecorator('DtDdWrapper');
                
        
        $send = new Zend_Form_Element_Button('send');
        $send->setLabel("Send");
            //->removeDecorator('DtDdWrapper');
        
        //$this->setDecorators(array(array('ViewScript', array('viewScript' => 'auth/_form_pwd_recovery.phtml'))));
        $this->addElements(array($email,$send));
    }
    
    private function translate($value)
    {     
        return $this->getTranslator()->translate($value);
    }
}